#ifndef textfield_h
#define textfield_h

#include <iostream>

class TextField: public TextPropertyComponent
{
private:
	float value;
public:
	TextField(String title) :
		TextPropertyComponent(title, 30, false), value(0)
	{
	}
	const String getText() const
	{
		return T("0.0");
	}

	void setText(const String& text)
	{
		value = text.getFloatValue();
	}

	float getValue()
	{
		return value;
	}
};

#endif
